/** 主站数据表格列配置 */
export const mainColumn = [
  {
    key: 'dataIndex',
    dataIndex: 'dataIndex',
    title: '序号',
    width: 70,
    fixed: 'left',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'subEqpName',
    dataIndex: 'subEqpName',
    title: '设备名称',
    fixed: 'left',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'mainOilTemperature',
    dataIndex: 'mainOilTemperature',
    title: '主油温度',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'dateTime',
    dataIndex: 'dateTime',
    title: '时间',
    align: 'center',
    checked: true,
    ellipsis: true
  }
];

/** 冷压数据表格列配置 */
export const coldColumn = [
  {
    key: 'dataIndex',
    dataIndex: 'dataIndex',
    title: '序号',
    width: 70,
    fixed: 'left',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'subEqpName',
    dataIndex: 'subEqpName',
    title: '设备名称',
    align: 'center',
    fixed: 'left',
    checked: true,
    ellipsis: true
  },
  {
    key: 'moduleNo',
    dataIndex: 'moduleNo',
    title: '生产型号',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'lotId',
    dataIndex: 'lotId',
    title: '批次号',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'formulaName',
    dataIndex: 'formulaName',
    title: '配方名称',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'coolingTemperatureSetting',
    dataIndex: 'coolingTemperatureSetting',
    title: '冷却温度设定',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 105
  },
  {
    key: 'hydraulicSetting',
    dataIndex: 'hydraulicSetting',
    title: '液压设定',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 80
  },
  {
    key: 'hydraulicPressure',
    dataIndex: 'hydraulicPressure',
    title: '液压',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 80
  },
  {
    key: 'plateTemperature1',
    dataIndex: 'plateTemperature1',
    title: '1#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 80
  },

  {
    key: 'dateTime',
    dataIndex: 'dateTime',
    title: '时间',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 170
  }
];

/** 热压数据表格列配置 */
export const hotColumn = [
  {
    key: 'dataIndex',
    dataIndex: 'dataIndex',
    title: '序号',
    width: 70,
    fixed: 'left',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'subEqpName',
    dataIndex: 'subEqpName',
    title: '设备名称',
    align: 'center',
    fixed: 'left',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'moduleNo',
    dataIndex: 'moduleNo',
    title: '生产型号',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'lotId',
    dataIndex: 'lotId',
    title: '批次号',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'formulaName',
    dataIndex: 'formulaName',
    title: '配方名称',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120,
    customRender: ({ record }) => {
      return record.formulaName || '-';
    }
  },
  {
    key: 'dateTime',
    dataIndex: 'dateTime',
    title: '时间',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 170
  },
  {
    key: 'vacuumPressure',
    dataIndex: 'vacuumPressure',
    title: '真空压力',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'hydraulicFeedback',
    dataIndex: 'hydraulicFeedback',
    title: '液压反馈',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'hydraulicSetting',
    dataIndex: 'hydraulicSetting',
    title: '液压设定',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'returnOilSetting',
    dataIndex: 'returnOilSetting',
    title: '回油设定',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'returnOilTemperature',
    dataIndex: 'returnOilTemperature',
    title: '回油温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature1',
    dataIndex: 'plateTemperature1',
    title: '1#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature2',
    dataIndex: 'plateTemperature2',
    title: '2#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature3',
    dataIndex: 'plateTemperature3',
    title: '3#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature4',
    dataIndex: 'plateTemperature4',
    title: '4#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature5',
    dataIndex: 'plateTemperature5',
    title: '5#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature6',
    dataIndex: 'plateTemperature6',
    title: '6#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature7',
    dataIndex: 'plateTemperature7',
    title: '7#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature8',
    dataIndex: 'plateTemperature8',
    title: '8#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature9',
    dataIndex: 'plateTemperature9',
    title: '9#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature10',
    dataIndex: 'plateTemperature10',
    title: '10#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature11',
    dataIndex: 'plateTemperature11',
    title: '11#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'plateTemperature12',
    dataIndex: 'plateTemperature12',
    title: '12#板温',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },

  {
    key: 'length',
    dataIndex: 'length',
    title: '长度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120,
    customRender: ({ record }) => {
      return record.length || '-';
    }
  },
  {
    key: 'width',
    dataIndex: 'width',
    title: '宽度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120,
    customRender: ({ record }) => {
      return record.width || '-';
    }
  },
  {
    key: 'productTemperature1',
    dataIndex: 'productTemperature1',
    title: '1#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature2',
    dataIndex: 'productTemperature2',
    title: '2#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature3',
    dataIndex: 'productTemperature3',
    title: '3#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature4',
    dataIndex: 'productTemperature4',
    title: '4#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature5',
    dataIndex: 'productTemperature5',
    title: '5#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature6',
    dataIndex: 'productTemperature6',
    title: '6#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature7',
    dataIndex: 'productTemperature7',
    title: '7#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature8',
    dataIndex: 'productTemperature8',
    title: '8#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature9',
    dataIndex: 'productTemperature9',
    title: '9#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature10',
    dataIndex: 'productTemperature10',
    title: '10#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature11',
    dataIndex: 'productTemperature11',
    title: '11#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  },
  {
    key: 'productTemperature12',
    dataIndex: 'productTemperature12',
    title: '12#产品温度',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 120
  }
];

/** 装料架数据表格列配置 */
export const pressColumn = [
  {
    key: 'dataIndex',
    dataIndex: 'dataIndex',
    title: '序号',
    width: 70,
    fixed: 'left',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'moduleNo',
    dataIndex: 'moduleNo',
    title: '生产型号',
    align: 'center',
    checked: true,
    fixed: 'left',
    ellipsis: true,
    width: 150
  },
  {
    key: 'lotId',
    dataIndex: 'lotId',
    title: '批次号',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'formulaName',
    dataIndex: 'formulaName',
    title: '配方名称',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'dateTime',
    dataIndex: 'dateTime',
    title: '时间',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 170
  },
  {
    key: 'hp01PlatenSize',
    dataIndex: 'hp01PlatenSize',
    title: '1#热压压盘数量',
    align: 'center',

    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'hp02PlatenSize',
    dataIndex: 'hp02PlatenSize',
    title: '2#热压压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'hp03PlatenSize',
    dataIndex: 'hp03PlatenSize',
    title: '3#热压压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'hp04PlatenSize',
    dataIndex: 'hp04PlatenSize',
    title: '4#热压压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'cp01PlatenSize',
    dataIndex: 'cp01PlatenSize',
    title: '1#冷压压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'cp02PlatenSize',
    dataIndex: 'cp02PlatenSize',
    title: '2#冷压压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'carPlatenSize',
    dataIndex: 'carPlatenSize',
    title: '小车压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'ldPlatenSize',
    dataIndex: 'ldPlatenSize',
    title: '装料架压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  },
  {
    key: 'odPlatenSize',
    dataIndex: 'odPlatenSize',
    title: '出料架压盘数量',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 150
  }
];

/** 卸料架数据表格列配置 */
export const unPressColumn = [
  {
    key: 'dataIndex',
    dataIndex: 'dataIndex',
    title: '序号',
    width: 70,
    fixed: 'left',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'subEqpName',
    dataIndex: 'subEqpName',
    title: '设备名称',
    fixed: 'left',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'moduleNo',
    dataIndex: 'moduleNo',
    title: '生产型号',
    align: 'center',
    checked: true,
    fixed: 'left',
    ellipsis: true
  },
  {
    key: 'lotId',
    dataIndex: 'lotId',
    title: 'Lot号',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'formulaName',
    dataIndex: 'formulaName',
    title: '配方名称',
    align: 'center',
    checked: true,
    ellipsis: true
  },
  {
    key: 'dateTime',
    dataIndex: 'dateTime',
    title: '时间',
    align: 'center',
    checked: true,
    ellipsis: true,
    width: 170
  }
];
